namespace Ds.DataBase.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class _20200611001 : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.MoBan_Path", "MoBan_Main_mbid1", c => c.Int());
            CreateIndex("dbo.MoBan_Path", "MoBan_Main_mbid1");
            AddForeignKey("dbo.MoBan_Path", "MoBan_Main_mbid1", "dbo.MoBan_Main", "mbid");
        }
        
        public override void Down()
        {
            DropForeignKey("dbo.MoBan_Path", "MoBan_Main_mbid1", "dbo.MoBan_Main");
            DropIndex("dbo.MoBan_Path", new[] { "MoBan_Main_mbid1" });
            DropColumn("dbo.MoBan_Path", "MoBan_Main_mbid1");
        }
    }
}
